package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

/**
 * 试卷题目关联对象 dz_shiti
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
public class DzShiti extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 试题id */
    private Long stId;

    /** 试卷id */
    @Excel(name = "试卷id")
    private Long sjId;

    private String sjName;

    private String tiName;

    private String daan;

    public String getDaan() {
        return daan;
    }

    public void setDaan(String daan) {
        this.daan = daan;
    }

    public String getTiName() {
        return tiName;
    }

    public void setTiName(String tiName) {
        this.tiName = tiName;
    }

    public String getSjName() {
        return sjName;
    }

    public void setSjName(String sjName) {
        this.sjName = sjName;
    }

    /** 题目id */
    @Excel(name = "题目id")
    private Long tiId;

    /** 分数 */
    @Excel(name = "分数")
    private Long fenshu;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderno;

    public void setStId(Long stId) 
    {
        this.stId = stId;
    }

    public Long getStId() 
    {
        return stId;
    }
    public void setSjId(Long sjId) 
    {
        this.sjId = sjId;
    }

    public Long getSjId() 
    {
        return sjId;
    }
    public void setTiId(Long tiId) 
    {
        this.tiId = tiId;
    }

    public Long getTiId() 
    {
        return tiId;
    }
    public void setFenshu(Long fenshu) 
    {
        this.fenshu = fenshu;
    }

    public Long getFenshu() 
    {
        return fenshu;
    }
    public void setOrderno(Long orderno) 
    {
        this.orderno = orderno;
    }

    public Long getOrderno() 
    {
        return orderno;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stId", getStId())
            .append("sjId", getSjId())
                .append("sjName", getSjName())
                .append("tiName", getTiName())
                .append("daan", getDaan())
            .append("tiId", getTiId())
            .append("fenshu", getFenshu())
            .append("orderno", getOrderno())
            .toString();
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DzShiti shiti = (DzShiti) o;
        return Objects.equals(sjId, shiti.sjId) &&
                Objects.equals(tiId, shiti.tiId);
    }

}
